package com.yantu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 综合实训课程设计
 * @since 2022-08-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Subject对象", description="")
public class Subject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学科id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "科学名字：语文 数学 英语 等")
    private String name;

    @ApiModelProperty(value = "年级对应数字 (1-12) 小学 初中 高中 大学")
    private Integer level;

    @ApiModelProperty(value = "级年名字：一年级、二年级等")
    private String levelName;

    @ApiModelProperty(value = "软删除")
    @TableLogic
    private Boolean deleted;


}
